|
Eclipse Platform Pre-release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Protocol that allows direct access to line information. Usually, implementations will also
implement IAnnotationModel
, which only allows Iterator
based access
to annotations.
Method Summary | |
ILineDiffInfo |
getLineInfo(int line)
Determines the line state for line line in the targeted document. |
int |
restoreAfterLine(int line)
Restores the deleted lines after line . |
void |
revertBlock(int line)
Reverts a block of modified / added lines to their original state, including any deleted lines inside the block or at its borders. |
void |
revertLine(int line)
Reverts a single changed line to its original state, not touching any lines that are deleted at its borders. |
void |
revertSelection(int line,
int nLines)
Reverts a range of lines to their original state, including any deleted lines inside the block or at its borders. |
Method Detail |
public ILineDiffInfo getLineInfo(int line)
line
in the targeted document.
line
-
line
.public void revertLine(int line) throws BadLocationException
line
- the line number of the line to be restored.
BadLocationException
- if line
is out of bounds.public void revertBlock(int line) throws BadLocationException
line
- any line in the block to be reverted.
BadLocationException
- if line
is out of bounds.public void revertSelection(int line, int nLines) throws BadLocationException
line
- any line in the block to be reverted.nLines
- the number of lines to be reverted, must be > 0.
BadLocationException
- if line
is out of bounds.public int restoreAfterLine(int line) throws BadLocationException
line
.
line
- the deleted lines following this line number are restored.
BadLocationException
- if line
is out of bounds.
|
Eclipse Platform Pre-release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |